/*
 * @Author: your name
 * @Date: 2020-08-16 15:21:31
 * @LastEditTime: 2020-08-16 15:23:16
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \demo\day02\traning\test03\main.go
 */
package main

import (
	"fmt"
	"runtime"
	"time"
)

func a() {
	for i := 1; i < 10; i++ {
		fmt.Println("A:", i)
	}
}

func b() {
	for i := 1; i < 10; i++ {
		fmt.Println("B:", i)
	}
}

func main() {
	runtime.GOMAXPROCS(3)
	go a()
	go b()
	time.Sleep(time.Second)
}
